<?php include $this->admin_tpl('meta', 'admin');?>
<title>重新获取订单</title>
<meta name="referrer" content="no-referrer" />
</head>
<body>
<div class="page-container" style="margin:0;padding:0 10px;">
	<div class="panel-body mt-10" style="padding:0;">
	<form action="" method="get" id="search">
	<input type="hidden" value="reget_order" name="action">
	<div class="select-box inline">
		<select name="shop_id" class="select" style="width:100px;">
			<option value="0">所有店铺</option>
			<?php
			$shop = get_shop_all();
			foreach($shop as $val){ echo '<option value="'.$val['shop_id'].'">'.$val['shop_name'].'</option>'; }
			?>
		</select>
	</div>
	<input type="text" class="input-text laydate-icon" style="width:130px;height:30px;" autocomplete="off" id="start" name="start" value="<?php echo date('Y-m-d');?>">
	<a class="btn btn-success radius" href="javascript:void(0)" id="btn_search">确定操作</a>
	</form>
	</div>
</div>
<?php include $this->admin_tpl('footer', 'admin');?>
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/laydate/1.1/laydate.js"></script>
<script type="text/javascript">
var start = {elem:'#start',format:'YYYY-MM-DD',min:'1999-01-01',max:'2099-01-01',istoday:false,choose:function(datas){}};
laydate(start);
$('.btn').click(function(){
	$.ajax({
		type: 'post',
		url: '<?php echo U('reget_order');?>', 
		data: $(this).parent('form').serialize(),
		dataType: "json", 
		success: function (res) {
			if(res.status){
				layer.msg(res.message, {icon:1, time:2000}); 
			}else{
				layer.msg(res.message, {icon:2});
			}
		}
	})
})

</script>
</body>
</html>